package movie.util;

import org.apache.hadoop.conf.Configuration;
import org.apache.sqoop.Sqoop;
import org.apache.sqoop.hive.HiveConfig;
import org.apache.sqoop.tool.ExportTool;
import org.apache.sqoop.tool.ImportTool;
import org.apache.sqoop.tool.SqoopTool;
 
import java.io.IOException;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class SqoopTest {
    static DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
    public static void main(String[] args) throws IOException {
        System.out.println(" begin test sqoop");

        //SqoopUtil.export("movice_weekday_peak","movie01",new String[]{"weekday","uno"});
        SqoopUtil.export("movie_score_rank10","movie02",new String[]{"movie_id","movie_num"});

        System.out.println("执行sqoop结束");
    }
}